package com.cxy.datawarehouse.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;


@Data
@Entity
@ApiModel("字段类型表")
@Table(name = "t_field_type")
@DynamicInsert
@DynamicUpdate
public class FieldType {
    /**
     * 主键 字段类别编号
     */
    @Id
    @ApiModelProperty("字段类型编号")
    @Column(name = "field_type_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long fieldTypeId;

    /**
     * 类型名称
     */
    @ApiModelProperty("类型名称")
    @Column(name = "type_name", nullable = false)
    private String typeName;

    /**
     * 类型说明
     */
    @ApiModelProperty("类型说明")
    @Column(name = "type_introduce", nullable = false)
    private String typeIntroduce;
}
